import p1 from '@/assets/imgs/rest.png';
import p2 from '@/assets/imgs/open.png';
import p3 from '@/assets/imgs/selected.png';
import {MapProps} from "@tarojs/components";

let id = 1;
export const mockData: Omit<MapProps['markers'], 'callout'> = [
  { longitude: 104.034241, latitude: 30.555989, name: '烤面筋' },
  { longitude: 104.034377, latitude: 30.555857, name: '炸串' },
  { longitude: 104.03413, latitude: 30.555846, name: '煎饼果子' },
  { longitude: 104.033995, latitude: 30.555867, name: '肉夹馍' },
  { longitude: 104.034364, latitude: 30.55613, name: '凉皮' },
  { longitude: 104.034409, latitude: 30.555796, name: '麻辣烫' },
  { longitude: 104.034071, latitude: 30.555779, name: '烤红薯' },
  { longitude: 104.033985, latitude: 30.555833, name: '臭豆腐' },
].map((item, i)=>{
  return {
    id:id++,
    width: 24,
    height: 24,
    callout: {
      content: '',
      borderWidth: 0,
      fontSize: 0,
    },
    iconPath: [
      p1,p2,p3
      // 'https://bayangcart.oss-cn-beijing.aliyuncs.com/open.png?Expires=1730456019&OSSAccessKeyId=TMP.3KiaB2pZWUcvLypPY9Bzo4ibm8hdrdjsXTkNB6RviQhB5QQyWCfZ1UsZxod1cHdK6erZLsSuwvdbjek6RrqGDkNN25TWbP&Signature=wYHEz%2Fp%2Bd%2Bby3Lc9tMt7%2FIe2E4E%3D',
      // 'https://bayangcart.oss-cn-beijing.aliyuncs.com/rest.png?Expires=1730456046&OSSAccessKeyId=TMP.3KiaB2pZWUcvLypPY9Bzo4ibm8hdrdjsXTkNB6RviQhB5QQyWCfZ1UsZxod1cHdK6erZLsSuwvdbjek6RrqGDkNN25TWbP&Signature=OsgeDUP27AboY5UksaD63t6Gsjs%3D',
      // 'https://bayangcart.oss-cn-beijing.aliyuncs.com/selected.png?Expires=1730456059&OSSAccessKeyId=TMP.3KiaB2pZWUcvLypPY9Bzo4ibm8hdrdjsXTkNB6RviQhB5QQyWCfZ1UsZxod1cHdK6erZLsSuwvdbjek6RrqGDkNN25TWbP&Signature=cuJOo6nwhft9zz7o26MV99HVrHc%3D',
    ][i % 3],
    ...item,
  }
});

export const mockStartCoord: ICoord = {
  longitude:104.034179,
  latitude:30.555857
}
